/*浏览专题概要信息*/
function viewTheme(id){
      var themeDoc = null;
   
      if(window.ActiveXObject){
         /*专题信息url*/
         var url = URI + context + "/app/portaltest.do?method=xmltheme&key=" + document.form1.key.value + "&userid=guanss";     
         themeDoc = new ActiveXObject('Microsoft.XMLDOM');
         themeDoc.async    = false;
         themeDoc.load(url);
      }
      
   
       //new ActiveXObject("MSXML2.DOMDocument.3.0");
      
      if(themeDoc==null){
         alert('您的浏览器不支持xml文件读取,于是本页面禁止您的操作,推荐使用IE5.0以上可以解决此问题!');
      }else{
         /*专题信息*/
         var items = themeDoc.selectNodes("/root/theme");
         /*专题有效性*/
         var valid = getNode(themeDoc,"/root/theme[0]/valid");
         /*无权访问*/
         var noright = getNode(themeDoc,"/root/theme[0]/noright");
         /*显示图片*/
         var picurl = URI + getNode(themeDoc,"/root/theme[0]/picurl");
         /*专题名称*/
         var tlt =  getNode(themeDoc,"/root/theme[0]/title");
         
         if(!document.getElementById("img")){
             alert("请在视图页面定义id=\"img\"的元素用于显示专题图片");
         }else if(!document.getElementById("tlt")){
             alert("请在视图页面定义id=\"tlt\"的元素用于显示专题标题");
         }else if(noright == "true"){
             document.getElementById("img").innerHTML = "<img src=\""+picurl+"\">";
             document.getElementById("tlt").innerHTML = tlt;
         }else{ 
             if(valid == "true"){
	            /*专题portlet调用*/
	            var u = "javascript:alert('转向专题portlet');";
	            document.getElementById("img").innerHTML = "<a href=\""+u+"\"><img style=\"border:0px;\" src=\""+picurl+"\"></a>";
	         }else{
	            document.getElementById("img").innerHTML = "<img src=\""+picurl+"\">";
	         }  
	         
	         document.getElementById("tlt").innerHTML = tlt;
         }
      }
  }
  
  /**/
  function viewTheme1(xml){
      var themeDoc = null;
   
      if(window.ActiveXObject){
         /*专题信息url*/    
         themeDoc = new ActiveXObject('Microsoft.XMLDOM');
         themeDoc.async = false;
         themeDoc.loadXML(xml);
      }
      
   
       //new ActiveXObject("MSXML2.DOMDocument.3.0");
      
      if(themeDoc==null){
         alert('您的浏览器不支持xml文件读取,于是本页面禁止您的操作,推荐使用IE5.0以上可以解决此问题!');
      }else{
         /*专题信息*/
         var items = themeDoc.selectNodes("/root/theme");
         /*专题有效性*/
         var valid = getNode(themeDoc,"/root/theme[0]/valid");
         /*无权访问*/
         var noright = getNode(themeDoc,"/root/theme[0]/noright");
         /*显示图片*/
         var picurl = URI + getNode(themeDoc,"/root/theme[0]/picurl");
         /*专题名称*/
         var tlt =  getNode(themeDoc,"/root/theme[0]/title");
         
         if(!document.getElementById("img")){
             alert("请在视图页面定义id=\"img\"的元素用于显示专题图片");
         }else if(!document.getElementById("tlt")){
             alert("请在视图页面定义id=\"tlt\"的元素用于显示专题标题");
         }else if(noright == "true"){
             document.getElementById("img").innerHTML = "<img src=\""+picurl+"\">";
             document.getElementById("tlt").innerHTML = tlt;
         }else{ 
             if(valid == "true"){
	            /*专题portlet调用*/
	            var u = "javascript:alert('转向专题portlet');";
	            document.getElementById("img").innerHTML = "<a href=\""+u+"\"><img style=\"border:0px;\" src=\""+picurl+"\"></a>";
	         }else{
	            document.getElementById("img").innerHTML = "<img src=\""+picurl+"\">";
	         }  
	         
	         document.getElementById("tlt").innerHTML = tlt;
         }
      }
  }